import api from '@/api/src/notice.js'
const notice = {
  state: {
    tabsList: []
  },
  mutations: {
    SET_TABS_LIST (state, tabsList) {
      state.tabsList = tabsList
    }
  },
  actions: {
    setTabList ({ commit }, announceId) {
      api.getAnnounceEnrollCount(announceId).then(res => {
        commit('SET_TABS_LIST', res)
      })
    }
  }
}
export default notice
